<template>
  <div>
    <el-dialog
      title="驳回工单"
      :visible.sync="centerDialogVisible"
      width="30%"
      center
      :show-close="false"
    >
      <span style="color:red;">*</span> <span> 驳回原因:</span>
      <el-input
        v-model="Rejection"
        type="textarea"
        :autosize="{ minRows: 7, maxRows: 4 }"
        placeholder="请输入驳回原因"
        required
        style="margin-top:10px"
      />
      <span slot="footer" class="dialog-footer">
        <el-button @click="operation(3)">取 消</el-button>
        <el-button type="primary" @click="operation(1)">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    //   是否显示
    centerDialogVisible: {
      type: Boolean,
      default: false
    },
    // 申请信息
    info: {
      type: Object,
      default: Object
    }
  },
  data() {
    return {
      dialogVisible: false,
      Rejection: ''
    }
  },

  mounted() {},

  methods: {
    operation(e) {
      this.$emit('operation', e)
    }
  }
}
</script>

<style lang="scss" scoped></style>
